import request from '@/utils/request'

// 查询schedules列表
export function listSchedules(query) {
  return request({
    url: '/pom/schedules/list',
    method: 'get',
    params: query
  })
}

// 查询schedules详细
export function getSchedules(id) {
  return request({
    url: '/pom/schedules/' + id,
    method: 'get'
  })
}

// 新增schedules
export function addSchedules(data) {
  return request({
    url: '/pom/schedules',
    method: 'post',
    data: data
  })
}

// 修改schedules
export function updateSchedules(data) {
  return request({
    url: '/pom/schedules',
    method: 'put',
    data: data
  })
}

// 删除schedules
export function delSchedules(id) {
  return request({
    url: '/pom/schedules/' + id,
    method: 'delete'
  })
}
